package utilitarios;

import dao.GenericDAO;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

/**
 *
 * @author WELISSON
 */
public class ExecutaQuery {
    
    public static void main(String args[]) {
        GenericDAO crud = new GenericDAO();
        ExecutaQuery eq = new ExecutaQuery();
            //crud.insert(eq.readAsString());
    }

    public String readAsString() {
        try {
            BufferedReader in = new BufferedReader(new FileReader("src/sql/insert_logradouro.sql"));

            String line = null;
            StringBuffer strBuffer = new StringBuffer();
            while ((line = in.readLine()) != null) {
                strBuffer.append(line);
                strBuffer.append('\n');
            }

            String contentStr = strBuffer.toString();
            return contentStr;
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
